package com.neuedu.ylbx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name="InpatientDiagnosis对象", description="")
public class InpatientDiagnosis implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "开立时间")
    private Date orderTime;

    @Schema(description = "医生医嘱诊疗项目信息")
    private String doctorOrder;

    @Schema(description = "用法详情说明")
    private String useMethod;

    @Schema(description = "诊疗项目表外键")
    @OneToOne(optional = true)
    @JoinColumn(name = "id")
    private Integer diagnosisId;

    @Schema(description = "医嘱状态：1-正常执行 0-作废 2- 停止")
    private Byte status;

}